Repository navigation
[codex] OM-SEC-16: Validate source roots before privileged publication - #9471
Closed
AFOliveira wants to merge 1 commit into
Closed
AFOliveira wants to merge 1 commit into
AFOliveira wants to merge 1 commit into
Conversation
AFOliveira
marked this pull request as draft
September 1, 2026 09:49
Member
Author
|
Withdrawing this as an independent security finding after re-checking the privilege boundary and the earlier #9317/#9351 analyses. The local proof confirms that caller-selected files reach sudo copy/install operands, but the caller is the same wheel user authorizing sudo and can already invoke the equivalent sudo operation directly. A cached sudo credential does not change that conclusion: any process running as that user can use sudo -n directly, so OMARCHY_PATH does not confer an additional capability. Trusted-source consolidation may still be useful defense-in-depth, but this 18-file security PR is not the right vehicle. I will keep the useful design notes locally and not count OM-SEC-16 among independently validated vulnerabilities. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A caller-controlled
OMARCHY_PATHcould select files later copied or installed by root.Finding: OM-SEC-16
Security impact
Attacker-selected source bytes can cross into root-owned system state, allowing privileged configuration replacement or code execution.
Remediation
Privileged publication uses canonical fixed or explicitly authorized roots with root-owned, non-writable ancestry; runtime scripts no longer publish generic static system files.
The reviewed implementation applies these concrete controls:
Validation
The baseline publisher accepted attacker paths; trusted-root, symlink, ownership, package-payload, and dev-link regressions pass.
Detailed regression coverage: trusted-source-publication-security-test.sh, unowned-system-paths-test.sh, hybrid-gpu-test.sh, quattro-ownership-bridge-test.sh, and the extracted archives pass.
Current status: Fixed. An explicitly root-authorized dev link intentionally trusts that user's checkout.
All changed shell files on this branch pass
bash -n, andgit diff --checkpasses.Coordination
This is one finding in a coordinated 21-finding disclosure sent to the Omarchy security team. The corresponding Markdown report contains the affected-code analysis and safe reproduction.
The matching
omarchy-settingspayload ownership change must ship in the coordinated release.